package com.czq;

import com.czq.annotation.mvc.CzqMvc;

/**
 * @author 程子强
 * @Description
 * @date 2024/7/9 10:38
 */
public class Main {
    static{
        //当getResource("")方法的参数为空字符串（""）时，它表示获取当前类文件所在的目录作为资源
        String path = Main.class.getResource("").getPath();
        String packageName = Main.class.getPackage().getName();
        CzqMvc.scanner(path,packageName);
    }

    public static void main(String[] args) {
        CzqMvc.exec("","");
        CzqMvc.exec("test","index1");
        CzqMvc.exec("test","");
        CzqMvc.exec("test","asdfasdfasdf");
        CzqMvc.exec("test","");
    }
}
